package edu.scau.core.constants;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;

@Tag(name = "请求结构参数",description = "返回请求结果参数解析")

public class HttpStatus {
        @Schema(name = "200",description = "请求成功")
        /**
         * 操作成功
         */
        public static final int SUCCESS = 200;
        @Schema(name = "201",description = "对象创建成功")

        /**
         * 对象创建成功
         */
        public static final int CREATED = 201;
        @Schema(name = "202",description = "请求已经被接受")


        /**
         * 请求已经被接受
         */
        public static final int ACCEPTED = 202;
        @Schema(name = "204",description = "操作成功，但无返回结果")

        /**
         * 操作已经执行成功，但是没有返回数据
         */
        public static final int NO_CONTENT = 204;
        @Schema(name = "301",description = "资源已移除")
        /**
         * 资源已被移除
         */
        public static final int MOVED_PERM = 301;
        @Schema(name = "303",description = "不存在该路径")
        /**
         * 重定向
         */
        public static final int SEE_OTHER = 303;
        @Schema(name = "304",description = "资源未被修改")
        /**
         * 资源没有被修改
         */
        public static final int NOT_MODIFIED = 304;
        @Schema(name = "400",description = "请求参数错误")
        /**
         * 参数列表错误（缺少，格式不匹配）
         */
        public static final int BAD_REQUEST = 400;
        @Schema(name = "401",description = "未授权")
        /**
         * 未授权
         */
        public static final int UNAUTHORIZED = 401;
        @Schema(name = "403",description = "会话过期")
        /**
         * 访问受限，授权过期
         */
        public static final int FORBIDDEN = 403;
        @Schema(name = "404",description = "404 Not Found")
        /**
         * 资源，服务未找到
         */
        public static final int NOT_FOUND = 404;
        @Schema(name = "405",description = "http服务不安全")
        /**
         * 不允许的http方法
         */
        public static final int BAD_METHOD = 405;
        @Schema(name = "409",description = "资源权限不足")
        /**
         * 资源冲突，或者资源被锁
         */
        public static final int CONFLICT = 409;
        @Schema(name = "415",description = "数据不支持")
        /**
         * 不支持的数据，媒体类型
         */
        public static final int UNSUPPORTED_TYPE = 415;
        @Schema(name = "500",description = "服务器错误")
        /**
         * 系统内部错误
         */
//        public static final int ERROR = 500;
         public static final int ERROR=500;
        @Schema(name = "501",description = "服务器未处理该请求")
        /**
         * 接口未实现
         */
        public static final int NOT_IMPLEMENTED = 501;


}
